Repository navigation
Automated Testing: Add media review routing rules - #87425
Conversation
Requests review from ramonjd and andrewserong on pull requests that change how the media editor looks or behaves.
🤖 PR meta 🤖🎉 PropsIf you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
Updated as activity occurs, without notifying anyone named here. Add the |
andrewserong
left a comment
There was a problem hiding this comment.
Looks good to try to me, and happy to be added as a reviewer on anything media editor related!
Removes the media modal and media block exclusion from the media editor rule, and adds a media blocks rule for the same reviewers.
Without this, the rule also matched media editor, media modal and media upload changes.
| reviewer: [ramonjd, andrewserong] | ||
| --- | ||
|
|
||
| Does this change how a block that shows or picks media looks or behaves for the people who use it? This includes choosing, uploading, replacing, cropping or editing an image, video or audio file from the block, and how the block displays that media. Such blocks include Image, Gallery, Cover, Media & Text, Video, Audio, File, Post Featured Image, Site Logo and Playlist, and the shared media controls in `packages/block-library/src/utils`. Only changes to block code in `packages/block-library` count, not changes to the media editor, the media modal or media upload. Answer no when what people see and do stays the same, such as for a dependency update, a type change or a test change that keeps the same runtime behavior. |
There was a problem hiding this comment.
I left Playlist in here just in case it touches uploads
There was a problem hiding this comment.
Sounds good 👍
And if it winds up being too noisy, we can always pare it back in follow-ups.
What?
Adds two review routing rules that request review from @andrewserong and me:
.github/review-routing/media-editor.md: pull requests that change how the media editor looks or behaves..github/review-routing/media-blocks.md: pull requests that change how a block that shows or picks media looks or behaves, such as Image, Gallery, Cover or Media & Text.Why?
The media editor has no CODEOWNERS entry, so media editor pull requests reach us only when someone tags us. A routing rule can also skip changes that touch the media editor packages without changing behaviour, such as a dependency update.
The scope is narrow on purpose.
media-editorcovers the media editor and the image editing canvas (@wordpress/media-editor,@wordpress/image-editor, the deprecated@wordpress/image-cropperandroutes/media-editor).media-blockscovers block code inpackages/block-libraryonly, and says to answer no for the media editor, the media modal and media upload, so the two rules do not overlap. Upload and client-side media processing are left out for now.Scores from
jev-1.14.0, run locally. A rule asks for review at 0.7 or above (in bold).media-editormedia-blocksmedia-editormedia-editormedia-editorMediaEditin media-utilsmedia-editormedia-blocksmedia-blocksmedia-blocksmedia-blocksmedia-blocksbuildModifiersrefactorTesting Instructions
The workflow runs on
pull_request_target, which reads the rules fromtrunk, so the rules only take effect after merge.media-blocksandmedia-editorquestions are listed after the design system questions:tools/review-routing/README.md), run the same command without--dry-runand check thatmedia-editorrequests review. Run it for Gallery: In a multiselection, hide controls that are unsupported #87374 and check thatmedia-blocksrequests review.